./configure \
		--enable-fhs \
		--prefix=/usr \
              --sbindir=/usr/bin \
              --libdir=/usr/lib \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--with-privatedir=/etc/samba/private \
		--bundled-libraries=!tdb,!talloc,!tevent,!popt,!ldb,!cmocka \
		--without-{ad-dc,ads,ldap} \
		--without-json

	/usr/bin/python3 ./buildtools/bin/waf build --jobs=${JOBS:-1}
	/usr/bin/python3 ./buildtools/bin/waf install --destdir=$PKG


	# cleanup
	chmod 1777 $PKG/var/lock

	# config-file and start-script
#	install -d $PKG/etc/{samba,rc.d}
 #   install -d $PKG/etc/rc.d/init.d
	install -m 0600 examples/smb.conf.default $PKG/etc/samba
#	install -m 0755 $SRC/samba $PKG/etc/rc.d/init.d

	# revdep
	install -d $PKG/etc/revdep.d
	echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
    